.app-post {
    margin: 20px 0;
    padding: 30px 40px;
    border-radius: 3px;
    background: var(--ducksite-background)
}

/* —————————————— 帖子 —————————————— */
.app-post-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-weight: 900;
    font-size: 22px;
    line-height: 30px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    padding-right: 40px;
}

.app-post-title-up {
    background: #ffb47e
}

.app-post-title-hot {
    background: #ff5b5b
}

.app-post-title-best {
    background: #5fbcff
}

.app-post-title>div {
    margin: 0 2px;
    padding: 3px 5px;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    line-height: 20px
}

.app-post-title>div:first-child {
    margin-left: 7px
}

.app-post-title p {
    margin-left: 5px
}

.app-post-title-share {
    position: absolute;
    right: 0;
    top: 15px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-post-info {
    padding: 10px 0 20px;
    border-bottom: 1px solid var(--ducksite-line)
}

.app-post-sender {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 20px 0;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row
}

img.app-post-sender-img {
    width: 50px;
    height: 50px;
    border-radius: 50%
}

.app-post-sender-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-left: 15px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center
}

.app-post-sender-info .app-user-nandg {
    margin-bottom: 4px;
    font-weight: 900;
    font-size: 18px
}

.app-post-sender-info p {
    color: var(--ducksite-content);
    font-size: 12px
}

.app-post-content {
    padding: 0 65px 20px !important
}

.markdown-body a {
    color: var(--ducksite-themecolor-1) !important;
}

/* —————————————— 评论 —————————————— */
.app-post-talkh {
    padding-bottom: 30px;
    font-weight: 900;
    font-size: 20px
}

.app-post-talk {
    padding-top: 20px;
    border-top: 1px solid var(--ducksite-line)
}

.app-post-talks {
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start
}

.app-post-talks,
.app-post-talks-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-direction: normal
}

.app-post-talks-item {
    margin-bottom: 20px;
    padding: 0 0 10px;
    width: 100%;
    -webkit-box-orient: horizontal;
    -ms-flex-direction: row;
    flex-direction: row
}

.app-post-talks-item-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%
}

.app-post-talks-item-main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--ducksite-line);
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column
}

.app-post-talks-item-main .app-user-nandg {
    margin-bottom: 3px;
    font-weight: 900;
    font-size: 18px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.app-post-talks-item-main-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: 10px;
    margin-right: 8px;
    color: #aaa;
    font-size: 13px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row
}

.app-post-talks-item-main-info-time {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1
}

.app-post-talks-openreply {
    cursor: pointer;
}

.app-post-talks-item-main .app-post-talkt {
    margin-bottom: -10px;
    margin-top: 10px;
    padding-left: 0px;
}

.app-post-talks-item-main-reply {
    padding-top: 20px;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column
}

.app-post-talks-item-main-reply,
.app-post-talks-item-main-reply-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-direction: normal
}

.app-post-talks-item-main-reply-item {
    margin-bottom: 20px;
    -webkit-box-orient: horizontal;
    -ms-flex-direction: row;
    flex-direction: row
}

.app-post-talks-item-main-reply-item-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%
}

.app-post-talks-item-main-reply-item-main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-left: 15px;
    padding: 10px 0;
    width: 100%;
    position: relative;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center
}

.app-post-talks-item-main-reply-item-main::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--ducksite-line);
    bottom: -10px;
}

.app-post-talks-item-main-reply-item-main-text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    flex-wrap: wrap;
}

.app-post-talks-item-main-reply-item-main-text>span {
    color: var(--ducksite-text);
    margin: 0 8px 0 4px;
}

.app-post-talks-item-main-reply-item-main-time {
    margin-top: 5px;
    color: var(--ducksite-content);
    font-size: 12px
}

.app-post-talks-item-avatar {
    padding-right: 15px
}

.app-post-talks-item-main-reply-item:last-child>.app-post-talks-item-main-reply-item-main::after {
    content: unset;
}

.app-post-talks-item-main-reply-item-avatar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: 8px;
}

.app-post-talks-item-main-content {
    width: 100%
}

.app-post-talks-item-main-content {
    white-space: pre-wrap !important;
    word-break: normal;
    overflow-wrap: anywhere
}

/* —————————————— 标题输入框 / 发布按钮 —————————————— */
.app-post-input {
    padding: 7px;
    width: 100%;
    border: 1px solid #ddd
}

.app-post-input.app-post-title {
    padding: 0;
    border: 1px solid transparent
}

.app-post-edit {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    margin-bottom: 20px;
}

button.app-post-button {
    margin-left: 10px;
    padding: 10px;
    border: none;
    border-radius: 3px;
    background: var(--ducksite-themecolor-1-bg);
    color: var(--ducksite-themecolor-1-tx);
    cursor: pointer;
    width: 50px;
}

button.app-post-button:hover {
    background: var(--ducksite-themecolor-2-bg);
    color: var(--ducksite-themecolor-2-tx);
}

button.app-post-button:active {
    background: var(--ducksite-themecolor-3-bg);
    color: var(--ducksite-themecolor-3-tx);
}

button.app-post-button[disabled] {
    background: var(--ducksite-themecolor-5-bg);
    color: var(--ducksite-themecolor-5-tx);
    cursor: no-drop
}

.app-post-input:disabled {
    background: transparent;
}

/* —————————————— 分区选择 —————————————— */
.app-post-pa {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 5px;
    margin-bottom: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* —————————————— 评论输入框 —————————————— */
.app-post-talkt {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 3px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
}

.app-post-talkt-star {
    margin-right: 15px;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    -webkit-transition: .2s;
    -o-transition: .2s;
    transition: .2s;
}

.app-post-talkt-star[illumined] {
    -webkit-filter: grayscale(0);
    filter: grayscale(0)
}

.app-post-talkt-star:hover {
    opacity: .8
}

.app-post-talkt-star * {
    width: 100%;
    height: 100%
}

textarea.app-post-talkt-input {
    padding: 5px;
    width: 100%;
    border: none;
    border-radius: 3px;
    background: var(--ducksite-groundfloor);
    resize: none
}

button.app-post-talkt-send {
    margin-left: 17px;
    padding: 10px;
    border: none;
    border-radius: 3px;
    background: var(--ducksite-themecolor-1-bg);
    color: var(--ducksite-themecolor-1-tx);
    cursor: pointer;
    width: 70px;
}

button.app-post-talkt-send:hover {
    background: var(--ducksite-themecolor-2-bg);
    color: var(--ducksite-themecolor-2-tx);
}

button.app-post-talkt-send:active {
    background: var(--ducksite-themecolor-3-bg);
    color: var(--ducksite-themecolor-3-tx);
}

button.app-post-talkt-send[disabled] {
    background: var(--ducksite-themecolor-5-bg);
    color: var(--ducksite-themecolor-5-tx);
    cursor: no-drop
}

/* —————————————— 分享 —————————————— */
.app-share {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 25px 0;
}

.app-share p {
    font-size: 12px;
    margin: 12px 0;
    color: var(--ducksite-content);
}

.app-share-url {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    height: 35px;
    width: 75%;
    border-radius: 5px;
    background: var(--ducksite-groundfloor);
    margin-top: 10px;
}

.app-share-other {
    margin-top: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 12px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    width: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0 10px;
}

.app-share-url-text {
    width: calc(100% - 40px);
    height: 100%;
    font-size: 14px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    padding: 0 8px;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.app-share-url-copy {
    width: 40px;
    height: 35px;
    background: url(/static/image/copy.svg) no-repeat center;
    background-size: 20px 20px;
    cursor: pointer;
}

@media (max-width:600px) {
    .app-post {
        margin: 0;
        padding: 20px 30px;
        border-radius: 0;
    }

    .app-post-title {
        width: 100%
    }

    .app-post-content {
        padding: 10px 0px 20px !important;
    }
}

@media (max-width:400px) {
    .app-post-talks-item {
        position: relative;
    }

    .app-post-talks-item-avatar {
        position: absolute;
    }

    .app-post-talks-item-main>*:not(.app-post-talks-item-main-reply):not(.app-post-talkt) {
        margin-left: 65px;
    }

    .app-post-talks-item-main-reply:has(.app-post-talks-item-main-reply-item) {
        background: var(--ducksite-groundfloor);
        margin-top: 20px;
        padding: 10px 18px;
        border-radius: 3px;
    }

    .app-post-talks-item-main:has(.app-post-talks-item-main-reply-item):has(.app-post-talks-item-main-reply-item) {
        border: none
    }

    .app-post-talks-item-main-reply-item:last-child {
        margin-bottom: 0
    }
}